<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('Article',ArticleController::class);
    $router->resource('Cause',CauseController::class);
    $router->resource('ClassCard',ClassCardController::class);
    $router->resource('Course',CourseController::class);
    $router->resource('Team',TeamController::class);
    $router->resource('User',UserController::class);
    $router->resource('Video',VideoController::class);
    $router->resource('SportsTest',SportsTestController::class);
    $router->resource('ClassHourlist',ClassHourListController::class);
    $router->resource('Teacher',TeacherController::class);
    $router->resource('CardList',CardListController::class);
    $router->resource('Seting',SetingController::class);
    $router->resource('Players',PlayersController::class);
    $router->resource('LevCourse',LevCourseController::class);
    $router->resource('PeriodRecode',PeriodRecodeController::class);

    $router->get('user/player','UserController@player');
    $router->get('ClassCard/{id}/change','ClassCardController@change');

    $router->get('Players/{id}/change','PlayersController@change');

    $router->get('ClassCard/{id}/change1','ClassCardController@change1');
    $router->get('user/ownerDate','UserController@ownerDate');
    $router->get('user/notPlayer','UserController@notPlayer');
    $router->get('teacher/teacherDate','TeacherController@teacherDate');
    $router->get('team/teamData','TeamController@teamData');
    $router->get('course/getCourse','CourseController@getCourse');
    //自定义开关


    $router->put('information_info/{id}/{s_id}','TeamController@information_info');
//审核操作
    $router->get('LevCourse/{id}/change','LevCourseController@change');
    $router->get('LevCourse/{id}/change1','LevCourseController@change1');


});
